package com.car.slave.im.util;

public class InterruptThread extends Thread {

	private boolean stop;
	
	public boolean isStop() {
		return stop;
	}

	public void setStop(boolean stop) {
		this.stop = stop;
	}
	
	public static void stopThreads(InterruptThread... threads) {
		if (null == threads) {
			return;
		}
		for (InterruptThread it : threads) {
			if (null != it) {
				it.setStop(true);
			}
		}
	}
}
